<%@ page language="java" contentType="text/html;charset=utf-8" %>
<footer class="main-footer">
    <div class="pull-right hidden-xs">
        <b>Version</b> 3.0.0
    </div>
    <strong>Copyright &copy; 2018-2020 <a  style="color: #00a65a;">商户服务平台</a>.</strong> All rights
    reserved.
</footer>
<script src="http://amazeui.org/js/jquery.min.js"></script>
<script src="${StaticHost}/js/bootstrap.min.js"></script>
<script type="application/javascript">
    var contextPath = "${pageContext.request.contextPath}";
    function getCurrentUrl() {
        var currentLeftMenu = window.location.href;
        if (currentLeftMenu) {
            var hostCurrent = "<%= request.getScheme()+"://"+ request.getServerName()%>";
            var portCurrent = <%=request.getServerPort()%>;
            if (portCurrent != 80) {
                hostCurrent = hostCurrent + ":" + portCurrent;
            }
            currentLeftMenu = currentLeftMenu.replace(hostCurrent, "");
            if (currentLeftMenu.indexOf("?") > 0) {
                currentLeftMenu = currentLeftMenu.substr(0, currentLeftMenu.indexOf("?"));
            }
            return currentLeftMenu;
        }
    }
    function setNavActive(lnk) {
        $("#ulLeftMenu li").map(function () {
            var that = $(this);
            var menu = that.find("a");
            menu.map(function () {
                var href = $(this).attr("href");
                if (href) {
                    if (href.indexOf("?") > 0) {
                        href = href.substr(0, href.indexOf("?"));
                    }
                    if (href == lnk) {
                        that.addClass("active");
                        $(this).parent().addClass("am-active");
                    }
                }
            });
        });
    }
    $(document).ready(function () {
        //此段JS是为了让当前目录的项置成激活项而用。
        setNavActive(getCurrentUrl());
    });

</script>
<script src="${StaticHost}/js/qipay.js?v=<%= request.getAttribute("StaticVersion") %>"></script>